package com.ykw.parking.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ShoppingCartMapper {
    List<String> queryByUserId(String UserId);
    void insertUserIdAndParkingId(String userId,String parkingId);
    String queryByParkingId(String UserId,String ParkingId);
    void deleteCartByParkingId(String parkingid,String userid);

    @Delete("delete from shoppingcart where parkingid=#{parkingid}")
    void deleteCartByPId(String parkingid);
}
